package com.neuedu.factory;

import com.neuedu.entity.User;

public class UserInstanceFactory {
    public UserInstanceFactory(){
        System.out.println("实例工厂注入");
    }
    public User getInstance(){
        User user = new User();
        user.setUsername("李四");
        return user;
    }
}
